<template>
  <el-tabs id="sec2Left" v-model="activeName2" type="card" style="width: 100%">
    <el-tab-pane v-for="(item,index) in list" :key="index" :label="item.name" :name="item.id">
      <div class="sec2_content">
        <div class="title flex">
          <span class="item1">第20174525期</span>
          <span class="item2">自助选号</span>
        </div>
        <div class="content flex">
          <img src="../../../../static/img/51.png" alt="">

          <div class="round bgRed" v-for="p in item.num">{{p}}</div>
          <!--<div class="round bgRed">3</div>-->
          <!--<div class="round bgRed">4</div>-->
          <!--<div class="round bgRed">6</div>-->
        </div>
        <div style="text-align: left;font-size: 14px">
          <el-input-number style="margin-top: 10px" v-model="times" size="small" @change="handleChange" :min="1"  label="描述文字"></el-input-number>
           倍 共 {{amount}} 元
          <el-button style="margin-left: 60px">换一注</el-button>
          <el-button type="primary" @click="goTouzhu(item.path)">立即投注</el-button>
        </div>
      </div>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
  export default {
    data () {
      return {
        activeName2: 'first',
        times: 1,
        list: [
          {
            id: 'first',
            name: '重庆时时彩',
            num: [1, 5, 8],
            path: '/hall/xjshishi'
          },
          {
            id: 'second',
            name: '排列三',
            num: [2, 4, 6],
            path: '/hall/pl3'
          },
          {
            id: 'third',
            name: '北京PK拾',
            num: [6, 4, 8, 7],
            path: '/hall/pk10'
          },
          {
            id: 'fourth',
            name: '六合彩',
            num: [1, 4, 9],
            path: '/hall/liuhe'
          },
          {
            id: 'five',
            name: '福彩3D',
            num: [2, 3, 5],
            path: '/hall/fc3d'
          }
        ]
      }
    },
    computed: {
      amount () {
        return this.times * 2
      }
    },
    methods: {
      handleChange (e) {
        console.log(e)
      },
      goTouzhu (path) {
        this.$router.push(path)
      }
    }

  }
</script>

<style lang="less">
/*.el-tabs__nav{*/
  /*width: 100%;*/
/*}*/
  #sec2Left{
    .el-tabs__nav{
      width: 100%;
    }
    .el-tabs__nav >div{
      width: 20%;
    }
    .active{
      border-top: 4px solid #e4393c;
    }
    .el-tabs__item.is-active {
      border-top: 4px solid #e4393c;
      color:#e4393c ;
      position: relative;
    }
    .el-tabs__item.is-active:after{
      content: " ";
      border: 5px solid #fbfbfb;
      border-top: 5px solid #e4393c;
      position: absolute;
      margin-left: -4.5px;
      top: 0;
      left: 50%;
    }
    .sec2_content{
      padding:10px 20px;
    }
    .title{
      .item1{
        width: 50%;
        text-align: left;
        font-size: 22px;
      }
      .item2{
        width: 50%;
        text-align: right;
        font-size: 14px;
      }
    }
   .content{
     margin-top: 40px;
     img{
       width: 70px;
       height:70px;
       margin-right: 40px;
     }
     .round{
       align-self: center;
       color: white;
       width: 40px;
       height:40px;
       font-size: 22px;
       line-height: 40px;
       text-align: center;
     }
   }

  }
</style>
